package org.itsolutions.javaBackup.ftp;

import org.itsolutions.javaBackup.ftp.handler.FTPDownloadHandler;
import org.itsolutions.javaBackup.ioc.AJavaBackupModule;
import org.itsolutions.javaBackup.logger.ELogLevel;
import org.itsolutions.javaBackup.logger.ILogger;
import org.itsolutions.javaBackup.logger.LoggerHelper;
import org.itsolutions.javaBackup.spi.EModule;
import org.itsolutions.javaBackup.spi.backup.ftp.IFTPDownloadHandler;

/**
 * 
 * @author Tomas Fecko
 */
public final class FTPModule extends AJavaBackupModule {

	private static final ILogger LOGGER = LoggerHelper.getLogger(FTPModule.class);
	
	@Override
	protected void configure() {
		LOGGER.log(ELogLevel.DEBUG, "Configuring the FTPModule.");
		registerStartStopTask(FTPModuleStartStopTask.class);
		bind(IFTPDownloadHandler.class).to(FTPDownloadHandler.class);
	}

	@Override
	protected EModule getModule() {
		return EModule.FTP;
	}
}
